"""
路由系统
"""
from flask_restful import Api

api = Api(prefix='/api/v1')

def init_api(app):
    api.init_app(app)

"""注册路由系统"""
from apps.movie.apis import MovieListApi
from apps.cinema.apis import CinemaListApi
from apps.cinema.apis import CinemaDetailApi
api.add_resource(MovieListApi,'/movie/',endpoint='api_movie_list')
api.add_resource(CinemaListApi,'/cinema/',endpoint='api_cinema_list')
api.add_resource(CinemaDetailApi,'/cinema/detail/',endpoint='api_cinema_detail')

